-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generated files with build 123537
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Aug 23, 2023
1 parent
c0d2d0f
commit c9af13c
Showing
143 changed files
with
1,197 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
...enerated/Contacts/Item/RetryServiceProvisioning/RetryServiceProvisioningRequestBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// <auto-generated/> | ||
using Microsoft.Graph.Models.ODataErrors; | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using Microsoft.Kiota.Abstractions; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Threading; | ||
using System; | ||
namespace Microsoft.Graph.Contacts.Item.RetryServiceProvisioning { | ||
/// <summary> | ||
/// Provides operations to call the retryServiceProvisioning method. | ||
/// </summary> | ||
public class RetryServiceProvisioningRequestBuilder : BaseRequestBuilder { | ||
/// <summary> | ||
/// Instantiates a new RetryServiceProvisioningRequestBuilder and sets the default values. | ||
/// </summary> | ||
/// <param name="pathParameters">Path parameters for the request</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public RetryServiceProvisioningRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/retryServiceProvisioning", pathParameters) { | ||
} | ||
/// <summary> | ||
/// Instantiates a new RetryServiceProvisioningRequestBuilder and sets the default values. | ||
/// </summary> | ||
/// <param name="rawUrl">The raw URL to use for the request builder.</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public RetryServiceProvisioningRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/contacts/{orgContact%2Did}/retryServiceProvisioning", rawUrl) { | ||
} | ||
/// <summary> | ||
/// Invoke action retryServiceProvisioning | ||
/// </summary> | ||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param> | ||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public async Task PostAsync(Action<RetryServiceProvisioningRequestBuilderPostRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) { | ||
#nullable restore | ||
#else | ||
public async Task PostAsync(Action<RetryServiceProvisioningRequestBuilderPostRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) { | ||
#endif | ||
var requestInfo = ToPostRequestInformation(requestConfiguration); | ||
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> { | ||
{"4XX", ODataError.CreateFromDiscriminatorValue}, | ||
{"5XX", ODataError.CreateFromDiscriminatorValue}, | ||
}; | ||
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken); | ||
} | ||
/// <summary> | ||
/// Invoke action retryServiceProvisioning | ||
/// </summary> | ||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public RequestInformation ToPostRequestInformation(Action<RetryServiceProvisioningRequestBuilderPostRequestConfiguration>? requestConfiguration = default) { | ||
#nullable restore | ||
#else | ||
public RequestInformation ToPostRequestInformation(Action<RetryServiceProvisioningRequestBuilderPostRequestConfiguration> requestConfiguration = default) { | ||
#endif | ||
var requestInfo = new RequestInformation { | ||
HttpMethod = Method.POST, | ||
UrlTemplate = UrlTemplate, | ||
PathParameters = PathParameters, | ||
}; | ||
if (requestConfiguration != null) { | ||
var requestConfig = new RetryServiceProvisioningRequestBuilderPostRequestConfiguration(); | ||
requestConfiguration.Invoke(requestConfig); | ||
requestInfo.AddRequestOptions(requestConfig.Options); | ||
requestInfo.AddHeaders(requestConfig.Headers); | ||
} | ||
return requestInfo; | ||
} | ||
/// <summary> | ||
/// Configuration for the request such as headers, query parameters, and middleware options. | ||
/// </summary> | ||
public class RetryServiceProvisioningRequestBuilderPostRequestConfiguration { | ||
/// <summary>Request headers</summary> | ||
public RequestHeaders Headers { get; set; } | ||
/// <summary>Request options</summary> | ||
public IList<IRequestOption> Options { get; set; } | ||
/// <summary> | ||
/// Instantiates a new retryServiceProvisioningRequestBuilderPostRequestConfiguration and sets the default values. | ||
/// </summary> | ||
public RetryServiceProvisioningRequestBuilderPostRequestConfiguration() { | ||
Options = new List<IRequestOption>(); | ||
Headers = new RequestHeaders(); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.