Skip to content

Commit 18f2ddf

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 192501
1 parent a401fe6 commit 18f2ddf

File tree

189 files changed

+11284
-477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+11284
-477
lines changed

src/Microsoft.Graph/Generated/Applications/GetAvailableExtensionProperties/GetAvailableExtensionPropertiesRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdap
3434
{
3535
}
3636
/// <summary>
37-
/// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
37+
/// Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
3838
/// Find more info here <see href="https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0" />
3939
/// </summary>
4040
/// <returns>A <see cref="global::Microsoft.Graph.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse"/></returns>
@@ -60,7 +60,7 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdap
6060
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse>(requestInfo, global::Microsoft.Graph.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
6161
}
6262
/// <summary>
63-
/// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
63+
/// Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
6464
/// Find more info here <see href="https://learn.microsoft.com/graph/api/directoryobject-getavailableextensionproperties?view=graph-rest-1.0" />
6565
/// </summary>
6666
/// <returns>A <see cref="global::Microsoft.Graph.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesResponse"/></returns>
@@ -87,7 +87,7 @@ public GetAvailableExtensionPropertiesRequestBuilder(string rawUrl, IRequestAdap
8787
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesResponse>(requestInfo, global::Microsoft.Graph.Applications.GetAvailableExtensionProperties.GetAvailableExtensionPropertiesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
8888
}
8989
/// <summary>
90-
/// Return all directory extension definitions that have been registered in a directory, including through multi-tenant apps. The following entities support extension properties:
90+
/// Return all directory extension definitions that are registered in a directory, including through multitenant apps. The following entities support extension properties:
9191
/// </summary>
9292
/// <returns>A <see cref="RequestInformation"/></returns>
9393
/// <param name="body">The request body</param>

src/Microsoft.Graph/Generated/Applications/Item/AddKey/AddKeyRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public AddKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
3535
{
3636
}
3737
/// <summary>
38-
/// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that dont have any existing valid certificates (no certificates have been added yet, or all certificates have expired), wont be able to use this service action. You can use the Update application operation to perform an update instead.
38+
/// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don&apos;t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won&apos;t be able to use this service action. You can use the Update application operation to perform an update instead.
3939
/// Find more info here <see href="https://learn.microsoft.com/graph/api/application-addkey?view=graph-rest-1.0" />
4040
/// </summary>
4141
/// <returns>A <see cref="global::Microsoft.Graph.Models.KeyCredential"/></returns>
@@ -61,7 +61,7 @@ public AddKeyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
6161
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.KeyCredential>(requestInfo, global::Microsoft.Graph.Models.KeyCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
6262
}
6363
/// <summary>
64-
/// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that dont have any existing valid certificates (no certificates have been added yet, or all certificates have expired), wont be able to use this service action. You can use the Update application operation to perform an update instead.
64+
/// Add a key credential to an application. This method, along with removeKey can be used by an application to automate rolling its expiring keys. As part of the request validation for this method, a proof of possession of an existing key is verified before the action can be performed. Applications that don&apos;t have any existing valid certificates (no certificates have been added yet, or all certificates have expired), won&apos;t be able to use this service action. You can use the Update application operation to perform an update instead.
6565
/// </summary>
6666
/// <returns>A <see cref="RequestInformation"/></returns>
6767
/// <param name="body">The request body</param>
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Kiota.Abstractions.Extensions;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using Microsoft.Kiota.Abstractions.Store;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System;
9+
namespace Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised
10+
{
11+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
12+
#pragma warning disable CS1591
13+
public partial class ConfirmCompromisedPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
14+
#pragma warning restore CS1591
15+
{
16+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
17+
public IDictionary<string, object> AdditionalData
18+
{
19+
get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); }
20+
set { BackingStore.Set("AdditionalData", value); }
21+
}
22+
/// <summary>Stores model information.</summary>
23+
public IBackingStore BackingStore { get; private set; }
24+
/// <summary>The requestIds property</summary>
25+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
26+
#nullable enable
27+
public List<string>? RequestIds
28+
{
29+
get { return BackingStore?.Get<List<string>?>("requestIds"); }
30+
set { BackingStore?.Set("requestIds", value); }
31+
}
32+
#nullable restore
33+
#else
34+
public List<string> RequestIds
35+
{
36+
get { return BackingStore?.Get<List<string>>("requestIds"); }
37+
set { BackingStore?.Set("requestIds", value); }
38+
}
39+
#endif
40+
/// <summary>
41+
/// Instantiates a new <see cref="global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody"/> and sets the default values.
42+
/// </summary>
43+
public ConfirmCompromisedPostRequestBody()
44+
{
45+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
46+
AdditionalData = new Dictionary<string, object>();
47+
}
48+
/// <summary>
49+
/// Creates a new instance of the appropriate class based on discriminator value
50+
/// </summary>
51+
/// <returns>A <see cref="global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody"/></returns>
52+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
53+
public static global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
54+
{
55+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
56+
return new global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody();
57+
}
58+
/// <summary>
59+
/// The deserialization information for the current model
60+
/// </summary>
61+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
62+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
63+
{
64+
return new Dictionary<string, Action<IParseNode>>
65+
{
66+
{ "requestIds", n => { RequestIds = n.GetCollectionOfPrimitiveValues<string>()?.AsList(); } },
67+
};
68+
}
69+
/// <summary>
70+
/// Serializes information the current object
71+
/// </summary>
72+
/// <param name="writer">Serialization writer to use to serialize this model</param>
73+
public virtual void Serialize(ISerializationWriter writer)
74+
{
75+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
76+
writer.WriteCollectionOfPrimitiveValues<string>("requestIds", RequestIds);
77+
writer.WriteAdditionalData(AdditionalData);
78+
}
79+
}
80+
}
81+
#pragma warning restore CS0618
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Models.ODataErrors;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System.Threading.Tasks;
10+
using System.Threading;
11+
using System;
12+
namespace Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised
13+
{
14+
/// <summary>
15+
/// Provides operations to call the confirmCompromised method.
16+
/// </summary>
17+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
18+
public partial class ConfirmCompromisedRequestBuilder : BaseRequestBuilder
19+
{
20+
/// <summary>
21+
/// Instantiates a new <see cref="global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedRequestBuilder"/> and sets the default values.
22+
/// </summary>
23+
/// <param name="pathParameters">Path parameters for the request</param>
24+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
25+
public ConfirmCompromisedRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/signIns/confirmCompromised", pathParameters)
26+
{
27+
}
28+
/// <summary>
29+
/// Instantiates a new <see cref="global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedRequestBuilder"/> and sets the default values.
30+
/// </summary>
31+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
32+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
33+
public ConfirmCompromisedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/auditLogs/signIns/confirmCompromised", rawUrl)
34+
{
35+
}
36+
/// <summary>
37+
/// Mark an event in the Microsoft Entra sign-in logs as risky. Events marked as risky by an admin are immediately flagged as high risk in Microsoft Entra ID Protection, overriding previous risk states. Admins can confirm that events flagged as risky by Microsoft Entra ID Protection are in fact risky. For details about investigating Identity Protection risks, see How to investigate risk.
38+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/signin-confirmcompromised?view=graph-rest-1.0" />
39+
/// </summary>
40+
/// <param name="body">The request body</param>
41+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
42+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
43+
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
44+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
45+
#nullable enable
46+
public async Task PostAsync(global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
47+
{
48+
#nullable restore
49+
#else
50+
public async Task PostAsync(global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
51+
{
52+
#endif
53+
_ = body ?? throw new ArgumentNullException(nameof(body));
54+
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
55+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
56+
{
57+
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
58+
};
59+
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
60+
}
61+
/// <summary>
62+
/// Mark an event in the Microsoft Entra sign-in logs as risky. Events marked as risky by an admin are immediately flagged as high risk in Microsoft Entra ID Protection, overriding previous risk states. Admins can confirm that events flagged as risky by Microsoft Entra ID Protection are in fact risky. For details about investigating Identity Protection risks, see How to investigate risk.
63+
/// </summary>
64+
/// <returns>A <see cref="RequestInformation"/></returns>
65+
/// <param name="body">The request body</param>
66+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
67+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
68+
#nullable enable
69+
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
70+
{
71+
#nullable restore
72+
#else
73+
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
74+
{
75+
#endif
76+
_ = body ?? throw new ArgumentNullException(nameof(body));
77+
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
78+
requestInfo.Configure(requestConfiguration);
79+
requestInfo.Headers.TryAdd("Accept", "application/json");
80+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
81+
return requestInfo;
82+
}
83+
/// <summary>
84+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
85+
/// </summary>
86+
/// <returns>A <see cref="global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedRequestBuilder"/></returns>
87+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
88+
public global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedRequestBuilder WithUrl(string rawUrl)
89+
{
90+
return new global::Microsoft.Graph.AuditLogs.SignIns.ConfirmCompromised.ConfirmCompromisedRequestBuilder(rawUrl, RequestAdapter);
91+
}
92+
/// <summary>
93+
/// Configuration for the request such as headers, query parameters, and middleware options.
94+
/// </summary>
95+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
96+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
97+
public partial class ConfirmCompromisedRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
98+
{
99+
}
100+
}
101+
}
102+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)