-
Notifications
You must be signed in to change notification settings - Fork 244
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 143502
- Loading branch information
Microsoft Graph DevX Tooling
authored and
Microsoft Graph DevX Tooling
committed
Apr 16, 2024
1 parent
e5eaab4
commit 639f01a
Showing
242 changed files
with
3,840 additions
and
642 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
226 changes: 226 additions & 0 deletions
226
...ederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.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,226 @@ | ||
// <auto-generated/> | ||
using Microsoft.Graph.Models.ODataErrors; | ||
using Microsoft.Graph.Models; | ||
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.Applications.Item.FederatedIdentityCredentialsWithName { | ||
/// <summary> | ||
/// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. | ||
/// </summary> | ||
public class FederatedIdentityCredentialsWithNameRequestBuilder : BaseRequestBuilder | ||
{ | ||
/// <summary> | ||
/// Instantiates a new <see cref="FederatedIdentityCredentialsWithNameRequestBuilder"/> and sets the default values. | ||
/// </summary> | ||
/// <param name="name">Alternate key of federatedIdentityCredential</param> | ||
/// <param name="pathParameters">Path parameters for the request</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public FederatedIdentityCredentialsWithNameRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter, string name = "") : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", pathParameters) | ||
{ | ||
if (!string.IsNullOrWhiteSpace(name)) PathParameters.Add("name", name); | ||
} | ||
/// <summary> | ||
/// Instantiates a new <see cref="FederatedIdentityCredentialsWithNameRequestBuilder"/> 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 FederatedIdentityCredentialsWithNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", rawUrl) | ||
{ | ||
} | ||
/// <summary> | ||
/// Delete a federatedIdentityCredential object from an application. | ||
/// Find more info here <see href="https://learn.microsoft.com/graph/api/federatedidentitycredential-delete?view=graph-rest-1.0" /> | ||
/// </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> | ||
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) | ||
{ | ||
#nullable restore | ||
#else | ||
public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) | ||
{ | ||
#endif | ||
var requestInfo = ToDeleteRequestInformation(requestConfiguration); | ||
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> | ||
{ | ||
{"XXX", ODataError.CreateFromDiscriminatorValue}, | ||
}; | ||
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); | ||
} | ||
/// <summary> | ||
/// Read the properties and relationships of a federatedIdentityCredential object. | ||
/// Find more info here <see href="https://learn.microsoft.com/graph/api/federatedidentitycredential-get?view=graph-rest-1.0" /> | ||
/// </summary> | ||
/// <returns>A <see cref="FederatedIdentityCredential"/></returns> | ||
/// <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> | ||
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public async Task<FederatedIdentityCredential?> GetAsync(Action<RequestConfiguration<FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) | ||
{ | ||
#nullable restore | ||
#else | ||
public async Task<FederatedIdentityCredential> GetAsync(Action<RequestConfiguration<FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) | ||
{ | ||
#endif | ||
var requestInfo = ToGetRequestInformation(requestConfiguration); | ||
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> | ||
{ | ||
{"XXX", ODataError.CreateFromDiscriminatorValue}, | ||
}; | ||
return await RequestAdapter.SendAsync<FederatedIdentityCredential>(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); | ||
} | ||
/// <summary> | ||
/// Update the properties of a federatedIdentityCredential object. | ||
/// Find more info here <see href="https://learn.microsoft.com/graph/api/federatedidentitycredential-update?view=graph-rest-1.0" /> | ||
/// </summary> | ||
/// <returns>A <see cref="FederatedIdentityCredential"/></returns> | ||
/// <param name="body">The request body</param> | ||
/// <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> | ||
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public async Task<FederatedIdentityCredential?> PatchAsync(FederatedIdentityCredential body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) | ||
{ | ||
#nullable restore | ||
#else | ||
public async Task<FederatedIdentityCredential> PatchAsync(FederatedIdentityCredential body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) | ||
{ | ||
#endif | ||
_ = body ?? throw new ArgumentNullException(nameof(body)); | ||
var requestInfo = ToPatchRequestInformation(body, requestConfiguration); | ||
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> | ||
{ | ||
{"XXX", ODataError.CreateFromDiscriminatorValue}, | ||
}; | ||
return await RequestAdapter.SendAsync<FederatedIdentityCredential>(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); | ||
} | ||
/// <summary> | ||
/// Delete a federatedIdentityCredential object from an application. | ||
/// </summary> | ||
/// <returns>A <see cref="RequestInformation"/></returns> | ||
/// <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 ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) | ||
{ | ||
#nullable restore | ||
#else | ||
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) | ||
{ | ||
#endif | ||
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); | ||
requestInfo.Configure(requestConfiguration); | ||
requestInfo.Headers.TryAdd("Accept", "application/json"); | ||
return requestInfo; | ||
} | ||
/// <summary> | ||
/// Read the properties and relationships of a federatedIdentityCredential object. | ||
/// </summary> | ||
/// <returns>A <see cref="RequestInformation"/></returns> | ||
/// <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 ToGetRequestInformation(Action<RequestConfiguration<FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters>>? requestConfiguration = default) | ||
{ | ||
#nullable restore | ||
#else | ||
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters>> requestConfiguration = default) | ||
{ | ||
#endif | ||
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); | ||
requestInfo.Configure(requestConfiguration); | ||
requestInfo.Headers.TryAdd("Accept", "application/json"); | ||
return requestInfo; | ||
} | ||
/// <summary> | ||
/// Update the properties of a federatedIdentityCredential object. | ||
/// </summary> | ||
/// <returns>A <see cref="RequestInformation"/></returns> | ||
/// <param name="body">The request body</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 RequestInformation ToPatchRequestInformation(FederatedIdentityCredential body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) | ||
{ | ||
#nullable restore | ||
#else | ||
public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) | ||
{ | ||
#endif | ||
_ = body ?? throw new ArgumentNullException(nameof(body)); | ||
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); | ||
requestInfo.Configure(requestConfiguration); | ||
requestInfo.Headers.TryAdd("Accept", "application/json"); | ||
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); | ||
return requestInfo; | ||
} | ||
/// <summary> | ||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. | ||
/// </summary> | ||
/// <returns>A <see cref="FederatedIdentityCredentialsWithNameRequestBuilder"/></returns> | ||
/// <param name="rawUrl">The raw URL to use for the request builder.</param> | ||
public FederatedIdentityCredentialsWithNameRequestBuilder WithUrl(string rawUrl) | ||
{ | ||
return new FederatedIdentityCredentialsWithNameRequestBuilder(rawUrl, RequestAdapter); | ||
} | ||
/// <summary> | ||
/// Configuration for the request such as headers, query parameters, and middleware options. | ||
/// </summary> | ||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] | ||
public class FederatedIdentityCredentialsWithNameRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters> | ||
{ | ||
} | ||
/// <summary> | ||
/// Read the properties and relationships of a federatedIdentityCredential object. | ||
/// </summary> | ||
public class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters | ||
{ | ||
/// <summary>Expand related entities</summary> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
[QueryParameter("%24expand")] | ||
public string[]? Expand { get; set; } | ||
#nullable restore | ||
#else | ||
[QueryParameter("%24expand")] | ||
public string[] Expand { get; set; } | ||
#endif | ||
/// <summary>Select properties to be returned</summary> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
[QueryParameter("%24select")] | ||
public string[]? Select { get; set; } | ||
#nullable restore | ||
#else | ||
[QueryParameter("%24select")] | ||
public string[] Select { get; set; } | ||
#endif | ||
} | ||
/// <summary> | ||
/// Configuration for the request such as headers, query parameters, and middleware options. | ||
/// </summary> | ||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] | ||
public class FederatedIdentityCredentialsWithNameRequestBuilderGetRequestConfiguration : RequestConfiguration<FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters> | ||
{ | ||
} | ||
/// <summary> | ||
/// Configuration for the request such as headers, query parameters, and middleware options. | ||
/// </summary> | ||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] | ||
public class FederatedIdentityCredentialsWithNameRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters> | ||
{ | ||
} | ||
} | ||
} |
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
Oops, something went wrong.