Skip to content

Commit

Permalink
Update generated files with build 129400
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Nov 21, 2023
1 parent ce62ccb commit f2d7e02
Show file tree
Hide file tree
Showing 8,838 changed files with 108,868 additions and 383,116 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
73 changes: 16 additions & 57 deletions src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// <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<Microsoft.Graph.Models.Admin?> GetAsync(Action<AdminRequestBuilderGetRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<Microsoft.Graph.Models.Admin?> GetAsync(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
public async Task<Microsoft.Graph.Models.Admin> GetAsync(Action<AdminRequestBuilderGetRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<Microsoft.Graph.Models.Admin> GetAsync(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
Expand All @@ -75,10 +75,10 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// <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<Microsoft.Graph.Models.Admin?> PatchAsync(Microsoft.Graph.Models.Admin body, Action<AdminRequestBuilderPatchRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<Microsoft.Graph.Models.Admin?> PatchAsync(Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
public async Task<Microsoft.Graph.Models.Admin> PatchAsync(Microsoft.Graph.Models.Admin body, Action<AdminRequestBuilderPatchRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<Microsoft.Graph.Models.Admin> PatchAsync(Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
Expand All @@ -94,23 +94,13 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// <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<AdminRequestBuilderGetRequestConfiguration>? requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default) {
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<AdminRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
UrlTemplate = UrlTemplate,
PathParameters = PathParameters,
};
if (requestConfiguration != null) {
var requestConfig = new AdminRequestBuilderGetRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddQueryParameters(requestConfig.QueryParameters);
requestInfo.AddRequestOptions(requestConfig.Options);
requestInfo.AddHeaders(requestConfig.Headers);
}
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
}
Expand All @@ -121,23 +111,14 @@ public RequestInformation ToGetRequestInformation(Action<AdminRequestBuilderGetR
/// <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(Microsoft.Graph.Models.Admin body, Action<AdminRequestBuilderPatchRequestConfiguration>? requestConfiguration = default) {
public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
#nullable restore
#else
public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin body, Action<AdminRequestBuilderPatchRequestConfiguration> requestConfiguration = default) {
public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation {
HttpMethod = Method.PATCH,
UrlTemplate = UrlTemplate,
PathParameters = PathParameters,
};
if (requestConfiguration != null) {
var requestConfig = new AdminRequestBuilderPatchRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddRequestOptions(requestConfig.Options);
requestInfo.AddHeaders(requestConfig.Headers);
}
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;
Expand Down Expand Up @@ -177,36 +158,14 @@ public class AdminRequestBuilderGetQueryParameters {
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AdminRequestBuilderGetRequestConfiguration {
/// <summary>Request headers</summary>
public RequestHeaders Headers { get; set; }
/// <summary>Request options</summary>
public IList<IRequestOption> Options { get; set; }
/// <summary>Request query parameters</summary>
public AdminRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AdminRequestBuilderGetQueryParameters();
/// <summary>
/// Instantiates a new adminRequestBuilderGetRequestConfiguration and sets the default values.
/// </summary>
public AdminRequestBuilderGetRequestConfiguration() {
Options = new List<IRequestOption>();
Headers = new RequestHeaders();
}
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AdminRequestBuilderGetRequestConfiguration : RequestConfiguration<AdminRequestBuilderGetQueryParameters> {
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AdminRequestBuilderPatchRequestConfiguration {
/// <summary>Request headers</summary>
public RequestHeaders Headers { get; set; }
/// <summary>Request options</summary>
public IList<IRequestOption> Options { get; set; }
/// <summary>
/// Instantiates a new adminRequestBuilderPatchRequestConfiguration and sets the default values.
/// </summary>
public AdminRequestBuilderPatchRequestConfiguration() {
Options = new List<IRequestOption>();
Headers = new RequestHeaders();
}
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AdminRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters> {
}
}
}
Loading

0 comments on commit f2d7e02

Please sign in to comment.