diff --git a/src/generated/AccessReviewDecisions/AccessReviewDecisionsRequestBuilder.cs b/src/generated/AccessReviewDecisions/AccessReviewDecisionsRequestBuilder.cs
index 58a0ffaec0..ad547b2278 100644
--- a/src/generated/AccessReviewDecisions/AccessReviewDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviewDecisions/AccessReviewDecisionsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviewDecisions.Count;
using ApiSdk.AccessReviewDecisions.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviewDecisions
///
/// Provides operations to manage the collection of accessReviewDecision entities.
///
- public class AccessReviewDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the collection of accessReviewDecision entities.
@@ -30,7 +33,7 @@ public class AccessReviewDecisionsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewDecisionItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviewDecisions.Item.AccessReviewDecisionItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviewDecisions.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -78,8 +81,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -106,41 +109,6 @@ public Command BuildListCommand()
{
var command = new Command("list");
command.Description = "Get entities from accessReviewDecisions";
- var topOption = new Option("--top", description: "Show only the first n items") {
- };
- topOption.IsRequired = false;
- command.AddOption(topOption);
- var skipOption = new Option("--skip", description: "Skip the first n items") {
- };
- skipOption.IsRequired = false;
- command.AddOption(skipOption);
- var searchOption = new Option("--search", description: "Search items by search phrases") {
- };
- searchOption.IsRequired = false;
- command.AddOption(searchOption);
- var filterOption = new Option("--filter", description: "Filter items by property values") {
- };
- filterOption.IsRequired = false;
- command.AddOption(filterOption);
- var countOption = new Option("--count", description: "Include count of items") {
- };
- countOption.IsRequired = false;
- command.AddOption(countOption);
- var orderbyOption = new Option("--orderby", description: "Order items by property values") {
- Arity = ArgumentArity.ZeroOrMore
- };
- orderbyOption.IsRequired = false;
- command.AddOption(orderbyOption);
- var selectOption = new Option("--select", description: "Select properties to be returned") {
- Arity = ArgumentArity.ZeroOrMore
- };
- selectOption.IsRequired = false;
- command.AddOption(selectOption);
- var expandOption = new Option("--expand", description: "Expand related entities") {
- Arity = ArgumentArity.ZeroOrMore
- };
- expandOption.IsRequired = false;
- command.AddOption(expandOption);
var outputOption = new Option("--output", () => FormatterType.JSON);
command.AddOption(outputOption);
var queryOption = new Option("--query");
@@ -148,14 +116,6 @@ public Command BuildListCommand()
var allOption = new Option("--all");
command.AddOption(allOption);
command.SetHandler(async (invocationContext) => {
- var top = invocationContext.ParseResult.GetValueForOption(topOption);
- var skip = invocationContext.ParseResult.GetValueForOption(skipOption);
- var search = invocationContext.ParseResult.GetValueForOption(searchOption);
- var filter = invocationContext.ParseResult.GetValueForOption(filterOption);
- var count = invocationContext.ParseResult.GetValueForOption(countOption);
- var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption);
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
var all = invocationContext.ParseResult.GetValueForOption(allOption);
@@ -165,14 +125,6 @@ public Command BuildListCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Top = top;
- q.QueryParameters.Skip = skip;
- if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search;
- if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter;
- q.QueryParameters.Count = count;
- q.QueryParameters.Orderby = orderby;
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -195,14 +147,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviewDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviewDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -215,11 +167,11 @@ public AccessReviewDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/acc
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -235,11 +187,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -251,7 +203,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
///
/// Get entities from accessReviewDecisions
///
- public class AccessReviewDecisionsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -315,3 +268,4 @@ public class AccessReviewDecisionsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviewDecisions/Count/CountRequestBuilder.cs b/src/generated/AccessReviewDecisions/Count/CountRequestBuilder.cs
index 38f8425833..e732820904 100644
--- a/src/generated/AccessReviewDecisions/Count/CountRequestBuilder.cs
+++ b/src/generated/AccessReviewDecisions/Count/CountRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviewDecisions.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -28,23 +31,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Get the number of the resource";
- var searchOption = new Option("--search", description: "Search items by search phrases") {
- };
- searchOption.IsRequired = false;
- command.AddOption(searchOption);
- var filterOption = new Option("--filter", description: "Filter items by property values") {
- };
- filterOption.IsRequired = false;
- command.AddOption(filterOption);
command.SetHandler(async (invocationContext) => {
- var search = invocationContext.ParseResult.GetValueForOption(searchOption);
- var filter = invocationContext.ParseResult.GetValueForOption(filterOption);
IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory");
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search;
- if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -57,14 +48,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviewDecisions/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviewDecisions/$count{?%24filter,%24search}", rawUrl)
@@ -77,11 +68,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviewDecisio
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -92,7 +83,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -117,3 +109,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviewDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs b/src/generated/AccessReviewDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
index a2632f2555..0086a49ea8 100644
--- a/src/generated/AccessReviewDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
+++ b/src/generated/AccessReviewDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviewDecisions.Item
///
/// Provides operations to manage the collection of accessReviewDecision entities.
///
- public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete entity from accessReviewDecisions
@@ -138,8 +141,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -160,14 +163,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewDecisionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviewDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewDecisionItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviewDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", rawUrl)
@@ -199,11 +202,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -219,11 +222,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -235,7 +238,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
///
/// Get entity from accessReviewDecisions by key
///
- public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -260,3 +264,4 @@ public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/AccessReviewsRequestBuilder.cs b/src/generated/AccessReviews/AccessReviewsRequestBuilder.cs
index 2a5e4dd75a..51e66c7589 100644
--- a/src/generated/AccessReviews/AccessReviewsRequestBuilder.cs
+++ b/src/generated/AccessReviews/AccessReviewsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Count;
using ApiSdk.AccessReviews.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews
///
/// Provides operations to manage the collection of accessReview entities.
///
- public class AccessReviewsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the collection of accessReview entities.
@@ -31,7 +34,7 @@ public Tuple, List> BuildCommand()
{
var executables = new List();
var commands = new List();
- var builder = new AccessReviewItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.AccessReviewItemRequestBuilder(PathParameters);
commands.Add(builder.BuildApplyDecisionsNavCommand());
commands.Add(builder.BuildDecisionsNavCommand());
executables.Add(builder.BuildDeleteCommand());
@@ -53,7 +56,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -88,8 +91,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReview.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReview.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -109,49 +112,14 @@ public Command BuildCreateCommand()
return command;
}
///
- /// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Note that business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you do not anticipate that the request will span multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making additional requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API will not include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
+ /// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you don't anticipate that the request spans multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API don't include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
/// Find more info here
///
/// A
public Command BuildListCommand()
{
var command = new Command("list");
- command.Description = "Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Note that business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you do not anticipate that the request will span multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making additional requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API will not include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accessreview-list?view=graph-rest-beta";
- var topOption = new Option("--top", description: "Show only the first n items") {
- };
- topOption.IsRequired = false;
- command.AddOption(topOption);
- var skipOption = new Option("--skip", description: "Skip the first n items") {
- };
- skipOption.IsRequired = false;
- command.AddOption(skipOption);
- var searchOption = new Option("--search", description: "Search items by search phrases") {
- };
- searchOption.IsRequired = false;
- command.AddOption(searchOption);
- var filterOption = new Option("--filter", description: "Filter items by property values") {
- };
- filterOption.IsRequired = false;
- command.AddOption(filterOption);
- var countOption = new Option("--count", description: "Include count of items") {
- };
- countOption.IsRequired = false;
- command.AddOption(countOption);
- var orderbyOption = new Option("--orderby", description: "Order items by property values") {
- Arity = ArgumentArity.ZeroOrMore
- };
- orderbyOption.IsRequired = false;
- command.AddOption(orderbyOption);
- var selectOption = new Option("--select", description: "Select properties to be returned") {
- Arity = ArgumentArity.ZeroOrMore
- };
- selectOption.IsRequired = false;
- command.AddOption(selectOption);
- var expandOption = new Option("--expand", description: "Expand related entities") {
- Arity = ArgumentArity.ZeroOrMore
- };
- expandOption.IsRequired = false;
- command.AddOption(expandOption);
+ command.Description = "Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you don't anticipate that the request spans multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API don't include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accessreview-list?view=graph-rest-beta";
var outputOption = new Option("--output", () => FormatterType.JSON);
command.AddOption(outputOption);
var queryOption = new Option("--query");
@@ -159,14 +127,6 @@ public Command BuildListCommand()
var allOption = new Option("--all");
command.AddOption(allOption);
command.SetHandler(async (invocationContext) => {
- var top = invocationContext.ParseResult.GetValueForOption(topOption);
- var skip = invocationContext.ParseResult.GetValueForOption(skipOption);
- var search = invocationContext.ParseResult.GetValueForOption(searchOption);
- var filter = invocationContext.ParseResult.GetValueForOption(filterOption);
- var count = invocationContext.ParseResult.GetValueForOption(countOption);
- var orderby = invocationContext.ParseResult.GetValueForOption(orderbyOption);
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
var all = invocationContext.ParseResult.GetValueForOption(allOption);
@@ -176,14 +136,6 @@ public Command BuildListCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Top = top;
- q.QueryParameters.Skip = skip;
- if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search;
- if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter;
- q.QueryParameters.Count = count;
- q.QueryParameters.Orderby = orderby;
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -206,31 +158,31 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
{
}
///
- /// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Note that business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you do not anticipate that the request will span multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making additional requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API will not include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
+ /// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you don't anticipate that the request spans multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API don't include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
///
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -246,11 +198,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReview body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReview body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReview body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReview body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -260,9 +212,10 @@ public RequestInformation ToPostRequestInformation(AccessReview body, Action
- /// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Note that business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you do not anticipate that the request will span multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making additional requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API will not include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
+ /// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you don't anticipate that the request spans multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API don't include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
///
- public class AccessReviewsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -326,3 +279,4 @@ public class AccessReviewsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Count/CountRequestBuilder.cs b/src/generated/AccessReviews/Count/CountRequestBuilder.cs
index 92f79712e9..0013492463 100644
--- a/src/generated/AccessReviews/Count/CountRequestBuilder.cs
+++ b/src/generated/AccessReviews/Count/CountRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -28,23 +31,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Get the number of the resource";
- var searchOption = new Option("--search", description: "Search items by search phrases") {
- };
- searchOption.IsRequired = false;
- command.AddOption(searchOption);
- var filterOption = new Option("--filter", description: "Filter items by property values") {
- };
- filterOption.IsRequired = false;
- command.AddOption(filterOption);
command.SetHandler(async (invocationContext) => {
- var search = invocationContext.ParseResult.GetValueForOption(searchOption);
- var filter = invocationContext.ParseResult.GetValueForOption(filterOption);
IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory");
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search;
- if (!string.IsNullOrEmpty(filter)) q.QueryParameters.Filter = filter;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -57,14 +48,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/$count{?%24filter,%24search}", rawUrl)
@@ -77,11 +68,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/$coun
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -92,7 +83,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -117,3 +109,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/AccessReviewItemRequestBuilder.cs b/src/generated/AccessReviews/Item/AccessReviewItemRequestBuilder.cs
index 1db1c41bd9..1276411d8a 100644
--- a/src/generated/AccessReviews/Item/AccessReviewItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/AccessReviewItemRequestBuilder.cs
@@ -1,4 +1,5 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.ApplyDecisions;
using ApiSdk.AccessReviews.Item.Decisions;
using ApiSdk.AccessReviews.Item.Instances;
@@ -9,6 +10,7 @@
using ApiSdk.AccessReviews.Item.Stop;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -27,7 +29,8 @@ namespace ApiSdk.AccessReviews.Item
///
/// Provides operations to manage the collection of accessReview entities.
///
- public class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to call the applyDecisions method.
@@ -37,7 +40,7 @@ public Command BuildApplyDecisionsNavCommand()
{
var command = new Command("apply-decisions");
command.Description = "Provides operations to call the applyDecisions method.";
- var builder = new ApplyDecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.ApplyDecisions.ApplyDecisionsRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -54,7 +57,7 @@ public Command BuildDecisionsNavCommand()
{
var command = new Command("decisions");
command.Description = "Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.";
- var builder = new DecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Decisions.DecisionsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -170,7 +173,7 @@ public Command BuildInstancesNavCommand()
{
var command = new Command("instances");
command.Description = "Provides operations to manage the instances property of the microsoft.graph.accessReview entity.";
- var builder = new InstancesRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.InstancesRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -197,7 +200,7 @@ public Command BuildMyDecisionsNavCommand()
{
var command = new Command("my-decisions");
command.Description = "Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.";
- var builder = new MyDecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.MyDecisions.MyDecisionsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -247,8 +250,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReview.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReview.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -276,7 +279,7 @@ public Command BuildResetDecisionsNavCommand()
{
var command = new Command("reset-decisions");
command.Description = "Provides operations to call the resetDecisions method.";
- var builder = new ResetDecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.ResetDecisions.ResetDecisionsRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -293,7 +296,7 @@ public Command BuildReviewersNavCommand()
{
var command = new Command("reviewers");
command.Description = "Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.";
- var builder = new ReviewersRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Reviewers.ReviewersRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -320,7 +323,7 @@ public Command BuildSendReminderNavCommand()
{
var command = new Command("send-reminder");
command.Description = "Provides operations to call the sendReminder method.";
- var builder = new SendReminderRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.SendReminder.SendReminderRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -337,7 +340,7 @@ public Command BuildStopNavCommand()
{
var command = new Command("stop");
command.Description = "Provides operations to call the stop method.";
- var builder = new StopRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Stop.StopRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -347,14 +350,14 @@ public Command BuildStopNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}{?%24expand,%24select}", rawUrl)
@@ -386,11 +389,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -406,11 +409,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReview body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReview body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReview body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReview body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -422,7 +425,8 @@ public RequestInformation ToPatchRequestInformation(AccessReview body, Action
/// In the Microsoft Entra access reviews feature, retrieve an accessReview object. To retrieve the reviewers of the access review, use the list accessReview reviewers API. To retrieve the decisions of the access review, use the list accessReview decisions API, or the list my accessReview decisions API. If this is a recurring access review, no decisions will be associated with the recurring access review series. Instead, use the instances relationship of that series to retrieve an accessReview collection of the past, current, and future instances of the access review. Each past and current instance will have decisions.
///
- public class AccessReviewItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -447,3 +451,4 @@ public class AccessReviewItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs
index fe2cc3a24c..de513e2fc4 100644
--- a/src/generated/AccessReviews/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.ApplyDecisions
///
/// Provides operations to call the applyDecisions method.
///
- public class ApplyDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ApplyDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory.
@@ -50,14 +53,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public ApplyDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/applyDecisions", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public ApplyDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/applyDecisions", rawUrl)
@@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Decisions.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -63,14 +66,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/decisions/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/decisions/$count{?%24filter,%24search}", rawUrl)
@@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -98,7 +101,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -123,3 +127,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Decisions/DecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/Decisions/DecisionsRequestBuilder.cs
index 443a530a3e..3df92cfea2 100644
--- a/src/generated/AccessReviews/Item/Decisions/DecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Decisions/DecisionsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Decisions.Count;
using ApiSdk.AccessReviews.Item.Decisions.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.Decisions
///
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
///
- public class DecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
@@ -30,7 +33,7 @@ public class DecisionsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewDecisionItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Decisions.Item.AccessReviewDecisionItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Decisions.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -83,8 +86,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -208,14 +211,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public DecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public DecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -228,11 +231,11 @@ public DecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
///
/// In the Microsoft Entra access reviews feature, retrieve the decisions of an accessReview object. Note that a recurring access review will not have a decisions relationship. Instead, the caller must navigate the instance relationship to find an accessReview object for a current or past instance of the access review.
///
- public class DecisionsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DecisionsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -328,3 +332,4 @@ public class DecisionsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs b/src/generated/AccessReviews/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs
index 6d2a588180..ca931e6eb8 100644
--- a/src/generated/AccessReviews/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviews.Item.Decisions.Item
///
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property decisions for accessReviews
@@ -155,8 +158,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -178,14 +181,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewDecisionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/decisions/{accessReviewDecision%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewDecisionItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/decisions/{accessReviewDecision%2Did}{?%24expand,%24select}", rawUrl)
@@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
///
/// The collection of decisions for this access review.
///
- public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -278,3 +282,4 @@ public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Count/CountRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Count/CountRequestBuilder.cs
index 3654865c74..ba552d5857 100644
--- a/src/generated/AccessReviews/Item/Instances/Count/CountRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Count/CountRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -63,14 +66,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/$count{?%24filter,%24search}", rawUrl)
@@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -98,7 +101,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -123,3 +127,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/InstancesRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/InstancesRequestBuilder.cs
index 6ebe9f879a..8eaf9781f2 100644
--- a/src/generated/AccessReviews/Item/Instances/InstancesRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/InstancesRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Instances.Count;
using ApiSdk.AccessReviews.Item.Instances.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.Instances
///
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
///
- public class InstancesRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class InstancesRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
@@ -31,7 +34,7 @@ public Tuple, List> BuildCommand()
{
var executables = new List();
var commands = new List();
- var builder = new ApiSdk.AccessReviews.Item.Instances.Item.AccessReviewItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.AccessReviewItemRequestBuilder(PathParameters);
commands.Add(builder.BuildApplyDecisionsNavCommand());
commands.Add(builder.BuildDecisionsNavCommand());
executables.Add(builder.BuildDeleteCommand());
@@ -52,7 +55,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -91,8 +94,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReview.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReview.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -215,14 +218,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public InstancesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -235,11 +238,11 @@ public InstancesRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReview body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReview body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReview body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReview body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -271,7 +274,8 @@ public RequestInformation ToPostRequestInformation(AccessReview body, Action
/// The collection of access reviews instances past, present, and future, if this object is a recurring access review.
///
- public class InstancesRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class InstancesRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -335,3 +339,4 @@ public class InstancesRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/AccessReviewItemRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/AccessReviewItemRequestBuilder.cs
index d53cf7714b..15b5fd9464 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/AccessReviewItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/AccessReviewItemRequestBuilder.cs
@@ -1,4 +1,5 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Instances.Item.ApplyDecisions;
using ApiSdk.AccessReviews.Item.Instances.Item.Decisions;
using ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions;
@@ -8,6 +9,7 @@
using ApiSdk.AccessReviews.Item.Instances.Item.Stop;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -26,7 +28,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item
///
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to call the applyDecisions method.
@@ -36,7 +39,7 @@ public Command BuildApplyDecisionsNavCommand()
{
var command = new Command("apply-decisions");
command.Description = "Provides operations to call the applyDecisions method.";
- var builder = new ApplyDecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -53,7 +56,7 @@ public Command BuildDecisionsNavCommand()
{
var command = new Command("decisions");
command.Description = "Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.";
- var builder = new DecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Decisions.DecisionsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -179,7 +182,7 @@ public Command BuildMyDecisionsNavCommand()
{
var command = new Command("my-decisions");
command.Description = "Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.";
- var builder = new MyDecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.MyDecisionsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -233,8 +236,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReview.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReview.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -263,7 +266,7 @@ public Command BuildResetDecisionsNavCommand()
{
var command = new Command("reset-decisions");
command.Description = "Provides operations to call the resetDecisions method.";
- var builder = new ResetDecisionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -280,7 +283,7 @@ public Command BuildReviewersNavCommand()
{
var command = new Command("reviewers");
command.Description = "Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.";
- var builder = new ReviewersRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.ReviewersRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -307,7 +310,7 @@ public Command BuildSendReminderNavCommand()
{
var command = new Command("send-reminder");
command.Description = "Provides operations to call the sendReminder method.";
- var builder = new SendReminderRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.SendReminder.SendReminderRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -324,7 +327,7 @@ public Command BuildStopNavCommand()
{
var command = new Command("stop");
command.Description = "Provides operations to call the stop method.";
- var builder = new StopRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Stop.StopRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -334,14 +337,14 @@ public Command BuildStopNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}{?%24expand,%24select}", rawUrl)
@@ -373,11 +376,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -393,11 +396,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReview body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReview body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReview body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReview body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -409,7 +412,8 @@ public RequestInformation ToPatchRequestInformation(AccessReview body, Action
/// The collection of access reviews instances past, present, and future, if this object is a recurring access review.
///
- public class AccessReviewItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -434,3 +438,4 @@ public class AccessReviewItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs
index 970b56bffb..7587e90deb 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.ApplyDecisions
///
/// Provides operations to call the applyDecisions method.
///
- public class ApplyDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ApplyDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn't configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user's access was denied in the review, when an administrator calls this API, Microsoft Entra ID removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn't have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory.
@@ -55,14 +58,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public ApplyDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/applyDecisions", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public ApplyDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/applyDecisions", rawUrl)
@@ -89,3 +92,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Decisions.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -69,14 +72,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/decisions/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/decisions/$count{?%24filter,%24search}", rawUrl)
@@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs
index b75c373dd3..cc0c0cfb38 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Instances.Item.Decisions.Count;
using ApiSdk.AccessReviews.Item.Instances.Item.Decisions.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Decisions
///
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
///
- public class DecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
@@ -30,7 +33,7 @@ public class DecisionsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewDecisionItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Decisions.Item.AccessReviewDecisionItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Decisions.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -88,8 +91,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -219,14 +222,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public DecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public DecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -239,11 +242,11 @@ public DecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
///
/// The collection of decisions for this access review.
///
- public class DecisionsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class DecisionsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -339,3 +343,4 @@ public class DecisionsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs
index 5f5546d330..f8fc46e33f 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/Decisions/Item/AccessReviewDecisionItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Decisions.Item
///
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property decisions for accessReviews
@@ -172,8 +175,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -196,14 +199,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewDecisionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/decisions/{accessReviewDecision%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewDecisionItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/decisions/{accessReviewDecision%2Did}{?%24expand,%24select}", rawUrl)
@@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
///
/// The collection of decisions for this access review.
///
- public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -296,3 +300,4 @@ public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Count/CountRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Count/CountRequestBuilder.cs
index b5ef32c445..6e5236698d 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Count/CountRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Count/CountRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -69,14 +72,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/myDecisions/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/myDecisions/$count{?%24filter,%24search}", rawUrl)
@@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
index 022ae3fb9c..4c75f78baa 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.Item
///
/// Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property myDecisions for accessReviews
@@ -172,8 +175,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -196,14 +199,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewDecisionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/myDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewDecisionItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/myDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", rawUrl)
@@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
///
/// The collection of decisions for the caller, if the caller is a reviewer.
///
- public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -296,3 +300,4 @@ public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/MyDecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/MyDecisionsRequestBuilder.cs
index 5694929e2b..8fdb1d9111 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/MyDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/MyDecisions/MyDecisionsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.Count;
using ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions
///
/// Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
///
- public class MyDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MyDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
@@ -30,7 +33,7 @@ public class MyDecisionsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewDecisionItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.Item.AccessReviewDecisionItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.MyDecisions.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -88,8 +91,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -219,14 +222,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public MyDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/myDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public MyDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/myDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -239,11 +242,11 @@ public MyDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
///
/// The collection of decisions for the caller, if the caller is a reviewer.
///
- public class MyDecisionsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MyDecisionsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -339,3 +343,4 @@ public class MyDecisionsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs
index 11c771a5c9..b40ff97bb9 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.ResetDecisions
///
/// Provides operations to call the resetDecisions method.
///
- public class ResetDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ResetDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, reset the decisions of a currently active accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. Previous decisions are no longer recorded, but reviewers can continue to update decisions.
@@ -56,14 +59,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public ResetDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/resetDecisions", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public ResetDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/resetDecisions", rawUrl)
@@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -69,14 +72,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/reviewers/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/reviewers/$count{?%24filter,%24search}", rawUrl)
@@ -89,11 +92,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -104,7 +107,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -129,3 +133,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs
index e8bf208e7a..d5dddea9d6 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.Item
///
/// Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewReviewerItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewReviewerItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property reviewers for accessReviews
@@ -172,8 +175,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewReviewer.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewReviewer.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -196,14 +199,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewReviewerItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/reviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewReviewerItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/reviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", rawUrl)
@@ -235,11 +238,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -255,11 +258,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -271,7 +274,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, A
///
/// The collection of reviewers for an access review, if access review reviewerType is of type delegated.
///
- public class AccessReviewReviewerItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewReviewerItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -296,3 +300,4 @@ public class AccessReviewReviewerItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/Reviewers/ReviewersRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/Reviewers/ReviewersRequestBuilder.cs
index 6a11a174ee..b2692a4833 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/Reviewers/ReviewersRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/Reviewers/ReviewersRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.Count;
using ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Reviewers
///
/// Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
///
- public class ReviewersRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReviewersRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
@@ -30,7 +33,7 @@ public class ReviewersRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewReviewerItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.Item.AccessReviewReviewerItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Instances.Item.Reviewers.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -88,8 +91,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewReviewer.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewReviewer.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -219,14 +222,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public ReviewersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/reviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public ReviewersRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/reviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -239,11 +242,11 @@ public ReviewersRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -259,11 +262,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -275,7 +278,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Ac
///
/// The collection of reviewers for an access review, if access review reviewerType is of type delegated.
///
- public class ReviewersRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReviewersRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -339,3 +343,4 @@ public class ReviewersRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs b/src/generated/AccessReviews/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs
index db52c6198b..d670ba1178 100644
--- a/src/generated/AccessReviews/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.SendReminder
///
/// Provides operations to call the sendReminder method.
///
- public class SendReminderRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SendReminderRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, send a reminder to the reviewers of a currently active accessReview. The target object can be either a one-time access review, or an instance of a recurring access review.
@@ -56,14 +59,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public SendReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/sendReminder", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public SendReminderRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/sendReminder", rawUrl)
@@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Instances.Item.Stop
///
/// Provides operations to call the stop method.
///
- public class StopRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class StopRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, stop a currently active accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. (To prevent a recurring access review from starting future instances, update it to change its scheduled end date). After the access review stops, reviewers can no longer give input, and the access review decisions can be applied.
@@ -56,14 +59,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public StopRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/stop", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public StopRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/instances/{accessReview%2Did1}/stop", rawUrl)
@@ -90,3 +93,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.MyDecisions.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -63,14 +66,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/myDecisions/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/myDecisions/$count{?%24filter,%24search}", rawUrl)
@@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -98,7 +101,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -123,3 +127,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs b/src/generated/AccessReviews/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
index 8f4f3e4a30..ef08c0fe58 100644
--- a/src/generated/AccessReviews/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/MyDecisions/Item/AccessReviewDecisionItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviews.Item.MyDecisions.Item
///
/// Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property myDecisions for accessReviews
@@ -155,8 +158,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -178,14 +181,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewDecisionItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/myDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewDecisionItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/myDecisions/{accessReviewDecision%2Did}{?%24expand,%24select}", rawUrl)
@@ -217,11 +220,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -253,7 +256,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
///
/// The collection of decisions for the caller, if the caller is a reviewer.
///
- public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewDecisionItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -278,3 +282,4 @@ public class AccessReviewDecisionItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/MyDecisions/MyDecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/MyDecisions/MyDecisionsRequestBuilder.cs
index c34b95b2a4..3c3c7c5e74 100644
--- a/src/generated/AccessReviews/Item/MyDecisions/MyDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/MyDecisions/MyDecisionsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.MyDecisions.Count;
using ApiSdk.AccessReviews.Item.MyDecisions.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.MyDecisions
///
/// Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
///
- public class MyDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MyDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
@@ -30,7 +33,7 @@ public class MyDecisionsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewDecisionItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.MyDecisions.Item.AccessReviewDecisionItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.MyDecisions.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -83,8 +86,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewDecision.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewDecision.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -208,14 +211,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public MyDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/myDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public MyDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/myDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -228,11 +231,11 @@ public MyDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -248,11 +251,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewDecision body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -264,7 +267,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
///
/// In the Microsoft Entra access reviews feature, retrieve the decisions of an accessReview object for the calling user as reviewer.
///
- public class MyDecisionsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class MyDecisionsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -328,3 +332,4 @@ public class MyDecisionsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs b/src/generated/AccessReviews/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs
index 96dba94b8e..fb87896844 100644
--- a/src/generated/AccessReviews/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.ResetDecisions
///
/// Provides operations to call the resetDecisions method.
///
- public class ResetDecisionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ResetDecisionsRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, reset the decisions of a currently active accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. Previous decisions are no longer recorded, but reviewers can continue to update decisions.
@@ -50,14 +53,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public ResetDecisionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/resetDecisions", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public ResetDecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/resetDecisions", rawUrl)
@@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Reviewers.Count
///
/// Provides operations to count the resources in the collection.
///
- public class CountRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the number of the resource
@@ -63,14 +66,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public CountRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/reviewers/$count{?%24filter,%24search}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/reviewers/$count{?%24filter,%24search}", rawUrl)
@@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{acce
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -98,7 +101,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Get the number of the resource
///
- public class CountRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class CountRequestBuilderGetQueryParameters
{
/// Filter items by property values
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -123,3 +127,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs b/src/generated/AccessReviews/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs
index 9240704487..512de7462c 100644
--- a/src/generated/AccessReviews/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Reviewers/Item/AccessReviewReviewerItemRequestBuilder.cs
@@ -1,6 +1,8 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -19,7 +21,8 @@ namespace ApiSdk.AccessReviews.Item.Reviewers.Item
///
/// Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
///
- public class AccessReviewReviewerItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewReviewerItemRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, update an existing accessReview object to remove a user as a reviewer. This operation is only permitted for an access review that isn't yet completed, and only for an access review where the reviewers are explicitly specified. This operation isn't permitted for an access review in which users review their own access, and not intended for an access review in which the group owners are assigned as the reviewers.
@@ -156,8 +159,8 @@ public Command BuildPatchCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewReviewer.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewReviewer.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -179,14 +182,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AccessReviewReviewerItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/reviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public AccessReviewReviewerItemRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/reviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", rawUrl)
@@ -218,11 +221,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -238,11 +241,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -254,7 +257,8 @@ public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, A
///
/// The collection of reviewers for an access review, if access review reviewerType is of type delegated.
///
- public class AccessReviewReviewerItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AccessReviewReviewerItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -279,3 +283,4 @@ public class AccessReviewReviewerItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/Reviewers/ReviewersRequestBuilder.cs b/src/generated/AccessReviews/Item/Reviewers/ReviewersRequestBuilder.cs
index 45a2519d9f..4634c64fd4 100644
--- a/src/generated/AccessReviews/Item/Reviewers/ReviewersRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/Reviewers/ReviewersRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.AccessReviews.Item.Reviewers.Count;
using ApiSdk.AccessReviews.Item.Reviewers.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.AccessReviews.Item.Reviewers
///
/// Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
///
- public class ReviewersRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReviewersRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
@@ -30,7 +33,7 @@ public class ReviewersRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new AccessReviewReviewerItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Reviewers.Item.AccessReviewReviewerItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.AccessReviews.Item.Reviewers.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -84,8 +87,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(AccessReviewReviewer.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AccessReviewReviewer.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -209,14 +212,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public ReviewersRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/reviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public ReviewersRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/reviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -229,11 +232,11 @@ public ReviewersRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -249,11 +252,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.AccessReviewReviewer body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(AccessReviewReviewer body, Ac
///
/// In the Microsoft Entra access reviews feature, retrieve the reviewers of an accessReview object.
///
- public class ReviewersRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReviewersRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -329,3 +333,4 @@ public class ReviewersRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/AccessReviews/Item/SendReminder/SendReminderRequestBuilder.cs b/src/generated/AccessReviews/Item/SendReminder/SendReminderRequestBuilder.cs
index e9de183d5a..f4eb7c13c5 100644
--- a/src/generated/AccessReviews/Item/SendReminder/SendReminderRequestBuilder.cs
+++ b/src/generated/AccessReviews/Item/SendReminder/SendReminderRequestBuilder.cs
@@ -1,5 +1,7 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.SendReminder
///
/// Provides operations to call the sendReminder method.
///
- public class SendReminderRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SendReminderRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, send a reminder to the reviewers of a currently active accessReview. The target object can be either a one-time access review, or an instance of a recurring access review.
@@ -50,14 +53,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public SendReminderRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/sendReminder", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public SendReminderRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/sendReminder", rawUrl)
@@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Models.ODataErrors;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -18,7 +20,8 @@ namespace ApiSdk.AccessReviews.Item.Stop
///
/// Provides operations to call the stop method.
///
- public class StopRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class StopRequestBuilder : BaseCliRequestBuilder
{
///
/// In the Microsoft Entra access reviews feature, stop a currently active accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. (To prevent a recurring access review from starting future instances, update it to change its scheduled end date). After the access review stops, reviewers can no longer give input, and the access review decisions can be applied.
@@ -50,14 +53,14 @@ public Command BuildPostCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public StopRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/accessReviews/{accessReview%2Did}/stop", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public StopRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{accessReview%2Did}/stop", rawUrl)
@@ -84,3 +87,4 @@ public RequestInformation ToPostRequestInformation(Action
+#pragma warning disable CS0618
using ApiSdk.Activitystatistics.Count;
using ApiSdk.Activitystatistics.Item;
using ApiSdk.Models.ODataErrors;
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -21,7 +23,8 @@ namespace ApiSdk.Activitystatistics
///
/// Provides operations to manage the collection of activityStatistics entities.
///
- public class ActivitystatisticsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ActivitystatisticsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the collection of activityStatistics entities.
@@ -30,7 +33,7 @@ public class ActivitystatisticsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new ActivityStatisticsItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Activitystatistics.Item.ActivityStatisticsItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -44,7 +47,7 @@ public Command BuildCountNavCommand()
{
var command = new Command("count");
command.Description = "Provides operations to count the resources in the collection.";
- var builder = new CountRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Activitystatistics.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -78,8 +81,8 @@ public Command BuildCreateCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
- var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(ApiSdk.Models.ActivityStatistics.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.ActivityStatistics.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -106,36 +109,6 @@ public Command BuildListCommand()
{
var command = new Command("list");
command.Description = "Get entities from activitystatistics";
- var topOption = new Option("--top", description: "Show only the first n items") {
- };
- topOption.IsRequired = false;
- command.AddOption(topOption);
- var skipOption = new Option("--skip", description: "Skip the first n items") {
- };
- skipOption.IsRequired = false;
- command.AddOption(skipOption);
- var searchOption = new Option