Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
82 changes: 46 additions & 36 deletions src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs

Large diffs are not rendered by default.

67 changes: 36 additions & 31 deletions src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
using Microsoft.Graph.Admin.Edge.InternetExplorerMode;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Extensions;
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;
Expand All @@ -15,23 +15,24 @@ namespace Microsoft.Graph.Admin.Edge
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
/// </summary>
public class EdgeRequestBuilder : BaseRequestBuilder
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class EdgeRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.</summary>
public Microsoft.Graph.Admin.Edge.InternetExplorerMode.InternetExplorerModeRequestBuilder InternetExplorerMode
public global::Microsoft.Graph.Admin.Edge.InternetExplorerMode.InternetExplorerModeRequestBuilder InternetExplorerMode
{
get => new Microsoft.Graph.Admin.Edge.InternetExplorerMode.InternetExplorerModeRequestBuilder(PathParameters, RequestAdapter);
get => new global::Microsoft.Graph.Admin.Edge.InternetExplorerMode.InternetExplorerModeRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>
/// Instantiates a new <see cref="Microsoft.Graph.Admin.Edge.EdgeRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder"/> 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 EdgeRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/edge{?%24expand,%24select}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="Microsoft.Graph.Admin.Edge.EdgeRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder"/> 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>
Expand All @@ -43,7 +44,7 @@ public EdgeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(
/// </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="Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.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)
Expand All @@ -56,57 +57,57 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "XXX", Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
/// <returns>A <see cref="Microsoft.Graph.Models.Edge"/></returns>
/// <returns>A <see cref="global::Microsoft.Graph.Models.Edge"/></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="Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<Microsoft.Graph.Models.Edge?> GetAsync(Action<RequestConfiguration<Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::Microsoft.Graph.Models.Edge?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<Microsoft.Graph.Models.Edge> GetAsync(Action<RequestConfiguration<Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::Microsoft.Graph.Models.Edge> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "XXX", Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.Edge>(requestInfo, global::Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Update the navigation property edge in admin
/// </summary>
/// <returns>A <see cref="Microsoft.Graph.Models.Edge"/></returns>
/// <returns>A <see cref="global::Microsoft.Graph.Models.Edge"/></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="Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<Microsoft.Graph.Models.Edge?> PatchAsync(Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::Microsoft.Graph.Models.Edge?> PatchAsync(global::Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<Microsoft.Graph.Models.Edge> PatchAsync(Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<global::Microsoft.Graph.Models.Edge> PatchAsync(global::Microsoft.Graph.Models.Edge 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", Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
{ "XXX", global::Microsoft.Graph.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.Edge>(requestInfo, global::Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Delete navigation property edge for admin
Expand Down Expand Up @@ -134,11 +135,11 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
/// <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<Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
Expand All @@ -154,11 +155,11 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Mi
/// <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.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
Expand All @@ -171,23 +172,25 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge
/// <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="Microsoft.Graph.Admin.Edge.EdgeRequestBuilder"/></returns>
/// <returns>A <see cref="global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public Microsoft.Graph.Admin.Edge.EdgeRequestBuilder WithUrl(string rawUrl)
public global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder WithUrl(string rawUrl)
{
return new Microsoft.Graph.Admin.Edge.EdgeRequestBuilder(rawUrl, RequestAdapter);
return new global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder(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 EdgeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class EdgeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
public class EdgeRequestBuilderGetQueryParameters
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class EdgeRequestBuilderGetQueryParameters
{
/// <summary>Expand related entities</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand All @@ -214,14 +217,16 @@ public class EdgeRequestBuilderGetQueryParameters
/// 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 EdgeRequestBuilderGetRequestConfiguration : RequestConfiguration<Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class EdgeRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>
{
}
/// <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 EdgeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
public partial class EdgeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
Loading