diff --git a/src/generated/Admin/AdminRequestBuilder.cs b/src/generated/Admin/AdminRequestBuilder.cs
index 03588d39a0..d311b5a072 100644
--- a/src/generated/Admin/AdminRequestBuilder.cs
+++ b/src/generated/Admin/AdminRequestBuilder.cs
@@ -1,11 +1,14 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge;
using ApiSdk.Admin.Microsoft365Apps;
using ApiSdk.Admin.People;
+using ApiSdk.Admin.ReportSettings;
using ApiSdk.Admin.ServiceAnnouncement;
using ApiSdk.Admin.Sharepoint;
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;
@@ -24,7 +27,8 @@ namespace ApiSdk.Admin
///
/// Provides operations to manage the admin singleton.
///
- public class AdminRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AdminRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
@@ -34,7 +38,7 @@ public Command BuildEdgeNavCommand()
{
var command = new Command("edge");
command.Description = "Provides operations to manage the edge property of the microsoft.graph.admin entity.";
- var builder = new EdgeRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.EdgeRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildDeleteCommand());
@@ -59,23 +63,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Get admin";
- 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");
command.AddOption(queryOption);
command.SetHandler(async (invocationContext) => {
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
@@ -83,8 +75,6 @@ public Command BuildGetCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -105,7 +95,7 @@ public Command BuildMicrosoft365AppsNavCommand()
{
var command = new Command("microsoft365-apps");
command.Description = "Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.";
- var builder = new Microsoft365AppsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Microsoft365Apps.Microsoft365AppsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildDeleteCommand());
@@ -147,8 +137,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(ApiSdk.Models.Admin.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.Admin.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -175,10 +165,11 @@ public Command BuildPeopleNavCommand()
{
var command = new Command("people");
command.Description = "Provides operations to manage the people property of the microsoft.graph.admin entity.";
- var builder = new PeopleRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.People.PeopleRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildGetCommand());
+ nonExecCommands.Add(builder.BuildItemInsightsNavCommand());
nonExecCommands.Add(builder.BuildProfileCardPropertiesNavCommand());
nonExecCommands.Add(builder.BuildPronounsNavCommand());
foreach (var cmd in execCommands)
@@ -192,6 +183,25 @@ public Command BuildPeopleNavCommand()
return command;
}
///
+ /// Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
+ ///
+ /// A
+ public Command BuildReportSettingsNavCommand()
+ {
+ var command = new Command("report-settings");
+ command.Description = "Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.";
+ var builder = new global::ApiSdk.Admin.ReportSettings.ReportSettingsRequestBuilder(PathParameters);
+ var execCommands = new List();
+ execCommands.Add(builder.BuildDeleteCommand());
+ execCommands.Add(builder.BuildGetCommand());
+ execCommands.Add(builder.BuildPatchCommand());
+ foreach (var cmd in execCommands)
+ {
+ command.AddCommand(cmd);
+ }
+ return command;
+ }
+ ///
/// Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
///
/// A
@@ -199,7 +209,7 @@ public Command BuildServiceAnnouncementNavCommand()
{
var command = new Command("service-announcement");
command.Description = "Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.";
- var builder = new ServiceAnnouncementRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.ServiceAnnouncement.ServiceAnnouncementRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildDeleteCommand());
@@ -226,7 +236,7 @@ public Command BuildSharepointNavCommand()
{
var command = new Command("sharepoint");
command.Description = "Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.";
- var builder = new SharepointRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Sharepoint.SharepointRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildDeleteCommand());
@@ -244,14 +254,14 @@ public Command BuildSharepointNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public AdminRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin{?%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 AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl)
@@ -264,11 +274,11 @@ public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%2
/// 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);
@@ -284,11 +294,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(ApiSdk.Models.Admin body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Admin body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Admin body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -300,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Ac
///
/// Get admin
///
- public class AdminRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class AdminRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -325,3 +336,4 @@ public class AdminRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/EdgeRequestBuilder.cs b/src/generated/Admin/Edge/EdgeRequestBuilder.cs
index 64af94f8b2..590fe2b015 100644
--- a/src/generated/Admin/Edge/EdgeRequestBuilder.cs
+++ b/src/generated/Admin/Edge/EdgeRequestBuilder.cs
@@ -1,7 +1,9 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge.InternetExplorerMode;
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;
@@ -20,7 +22,8 @@ namespace ApiSdk.Admin.Edge
///
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
///
- public class EdgeRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class EdgeRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property edge for admin
@@ -30,18 +33,11 @@ public Command BuildDeleteCommand()
{
var command = new Command("delete");
command.Description = "Delete navigation property edge for admin";
- var ifMatchOption = new Option("--if-match", description: "ETag") {
- Arity = ArgumentArity.ZeroOrMore
- };
- ifMatchOption.IsRequired = false;
- command.AddOption(ifMatchOption);
command.SetHandler(async (invocationContext) => {
- var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption);
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToDeleteRequestInformation(q => {
});
- if (ifMatch is not null) requestInfo.Headers.Add("If-Match", ifMatch);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -59,23 +55,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "A container for Microsoft Edge resources. Read-only.";
- 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");
command.AddOption(queryOption);
command.SetHandler(async (invocationContext) => {
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
@@ -83,8 +67,6 @@ public Command BuildGetCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -105,7 +87,7 @@ public Command BuildInternetExplorerModeNavCommand()
{
var command = new Command("internet-explorer-mode");
command.Description = "Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.";
- var builder = new InternetExplorerModeRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.InternetExplorerModeRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildDeleteCommand());
@@ -147,8 +129,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(ApiSdk.Models.Edge.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.Edge.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -168,14 +150,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 EdgeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge{?%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 EdgeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge{?%24expand,%24select}", rawUrl)
@@ -207,11 +189,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);
@@ -227,11 +209,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(ApiSdk.Models.Edge body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Edge body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Edge body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -243,7 +225,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Act
///
/// A container for Microsoft Edge resources. Read-only.
///
- public class EdgeRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class EdgeRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -268,3 +251,4 @@ public class EdgeRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs
index e6522763a0..9b8596c744 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs
@@ -1,7 +1,9 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists;
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;
@@ -20,7 +22,8 @@ namespace ApiSdk.Admin.Edge.InternetExplorerMode
///
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
///
- public class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property internetExplorerMode for admin
@@ -30,18 +33,11 @@ public Command BuildDeleteCommand()
{
var command = new Command("delete");
command.Description = "Delete navigation property internetExplorerMode for admin";
- var ifMatchOption = new Option("--if-match", description: "ETag") {
- Arity = ArgumentArity.ZeroOrMore
- };
- ifMatchOption.IsRequired = false;
- command.AddOption(ifMatchOption);
command.SetHandler(async (invocationContext) => {
- var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption);
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToDeleteRequestInformation(q => {
});
- if (ifMatch is not null) requestInfo.Headers.Add("If-Match", ifMatch);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -59,23 +55,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "A container for Internet Explorer mode resources.";
- 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");
command.AddOption(queryOption);
command.SetHandler(async (invocationContext) => {
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
@@ -83,8 +67,6 @@ public Command BuildGetCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -122,8 +104,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(ApiSdk.Models.InternetExplorerMode.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.InternetExplorerMode.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -150,7 +132,7 @@ public Command BuildSiteListsNavCommand()
{
var command = new Command("site-lists");
command.Description = "Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.";
- var builder = new SiteListsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.SiteListsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -170,14 +152,14 @@ public Command BuildSiteListsNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public InternetExplorerModeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode{?%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 InternetExplorerModeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}", rawUrl)
@@ -209,11 +191,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);
@@ -229,11 +211,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(ApiSdk.Models.InternetExplorerMode body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.InternetExplorerMode body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ApiSdk.Models.InternetExplorerMode body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.InternetExplorerMode body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -245,7 +227,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.InternetExplor
///
/// A container for Internet Explorer mode resources.
///
- public class InternetExplorerModeRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class InternetExplorerModeRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -270,3 +253,4 @@ public class InternetExplorerModeRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs
index 1af6a265ca..df61e2ca2f 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/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.Admin.Edge.InternetExplorerMode.SiteLists.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}/admin/edge/internetExplorerMode/siteLists/$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}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}", rawUrl)
@@ -77,11 +68,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internet
/// 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/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs
index 7c6c278806..e14133d937 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs
@@ -1,9 +1,11 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish;
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies;
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites;
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;
@@ -22,7 +24,8 @@ namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item
///
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
///
- public class BrowserSiteListItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BrowserSiteListItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete a browserSiteList object.
@@ -144,8 +147,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(BrowserSiteList.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.BrowserSiteList.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -173,7 +176,7 @@ public Command BuildPublishNavCommand()
{
var command = new Command("publish");
command.Description = "Provides operations to call the publish method.";
- var builder = new PublishRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildPostCommand());
foreach (var cmd in execCommands)
@@ -190,7 +193,7 @@ public Command BuildSharedCookiesNavCommand()
{
var command = new Command("shared-cookies");
command.Description = "Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.";
- var builder = new SharedCookiesRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.SharedCookiesRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -217,7 +220,7 @@ public Command BuildSitesNavCommand()
{
var command = new Command("sites");
command.Description = "Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.";
- var builder = new SitesRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.SitesRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -237,14 +240,14 @@ public Command BuildSitesNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public BrowserSiteListItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%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 BrowserSiteListItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}{?%24expand,%24select}", rawUrl)
@@ -276,11 +279,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);
@@ -296,11 +299,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(BrowserSiteList body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BrowserSiteList body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(BrowserSiteList body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BrowserSiteList body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -312,7 +315,8 @@ public RequestInformation ToPatchRequestInformation(BrowserSiteList body, Action
///
/// Get a browserSiteList that contains browserSite and browserSharedCookie resources.
///
- public class BrowserSiteListItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BrowserSiteListItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -337,3 +341,4 @@ public class BrowserSiteListItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs
index f92330d0fc..23b47093a7 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs
@@ -1,14 +1,16 @@
//
+#pragma warning disable CS0618
using ApiSdk.Models;
+using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
using System.IO;
-using System.Linq;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish
{
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
#pragma warning disable CS1591
- public class PublishPostRequestBody : IAdditionalDataHolder, IParsable
+ public partial class PublishPostRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -24,21 +26,21 @@ public class PublishPostRequestBody : IAdditionalDataHolder, IParsable
/// The sharedCookies property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public List? SharedCookies { get; set; }
+ public List? SharedCookies { get; set; }
#nullable restore
#else
- public List SharedCookies { get; set; }
+ public List SharedCookies { get; set; }
#endif
/// The sites property
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public List? Sites { get; set; }
+ public List? Sites { get; set; }
#nullable restore
#else
- public List Sites { get; set; }
+ public List Sites { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public PublishPostRequestBody()
{
@@ -47,12 +49,12 @@ public PublishPostRequestBody()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static PublishPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new PublishPostRequestBody();
+ return new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody();
}
///
/// The deserialization information for the current model
@@ -63,8 +65,8 @@ public virtual IDictionary> GetFieldDeserializers()
return new Dictionary>
{
{ "revision", n => { Revision = n.GetStringValue(); } },
- { "sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } },
- { "sites", n => { Sites = n.GetCollectionOfObjectValues(BrowserSite.CreateFromDiscriminatorValue)?.ToList(); } },
+ { "sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues(global::ApiSdk.Models.BrowserSharedCookie.CreateFromDiscriminatorValue)?.AsList(); } },
+ { "sites", n => { Sites = n.GetCollectionOfObjectValues(global::ApiSdk.Models.BrowserSite.CreateFromDiscriminatorValue)?.AsList(); } },
};
}
///
@@ -75,9 +77,10 @@ public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("revision", Revision);
- writer.WriteCollectionOfObjectValues("sharedCookies", SharedCookies);
- writer.WriteCollectionOfObjectValues("sites", Sites);
+ writer.WriteCollectionOfObjectValues("sharedCookies", SharedCookies);
+ writer.WriteCollectionOfObjectValues("sites", Sites);
writer.WriteAdditionalData(AdditionalData);
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs
index 1a14208aa4..583f484149 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.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.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish
///
/// Provides operations to call the publish method.
///
- public class PublishRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PublishRequestBuilder : BaseCliRequestBuilder
{
///
/// Publish the specified browserSiteList for devices to download.
@@ -51,8 +54,8 @@ public Command BuildPostCommand()
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(PublishPostRequestBody.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -73,14 +76,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 PublishRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/publish", 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 PublishRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/publish", rawUrl)
@@ -94,11 +97,11 @@ public PublishRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/intern
/// 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 ToPostRequestInformation(PublishPostRequestBody body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(PublishPostRequestBody body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -109,3 +112,4 @@ public RequestInformation ToPostRequestInformation(PublishPostRequestBody body,
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs
index 6f246c621f..e3ccea3259 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/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.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Co
///
/// 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}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/$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}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/$count{?%24filter,%24search}", rawUrl)
@@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internet
/// 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/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs
index 42c28a5bde..40546045e0 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.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.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.It
///
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
///
- public class BrowserSharedCookieItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BrowserSharedCookieItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete a browserSharedCookie from a browserSiteList.
@@ -158,8 +161,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(BrowserSharedCookie.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.BrowserSharedCookie.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -181,14 +184,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 BrowserSharedCookieItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/{browserSharedCookie%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 BrowserSharedCookieItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies/{browserSharedCookie%2Did}{?%24expand,%24select}", rawUrl)
@@ -220,11 +223,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);
@@ -240,11 +243,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(BrowserSharedCookie body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BrowserSharedCookie body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(BrowserSharedCookie body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BrowserSharedCookie body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(BrowserSharedCookie body, Ac
///
/// Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
///
- public class BrowserSharedCookieItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BrowserSharedCookieItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -281,3 +285,4 @@ public class BrowserSharedCookieItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs
index 168c6c3b54..7ca7515bc8 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Count;
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.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.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies
///
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
///
- public class SharedCookiesRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SharedCookiesRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
@@ -30,7 +33,7 @@ public class SharedCookiesRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new BrowserSharedCookieItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Item.BrowserSharedCookieItemRequestBuilder(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.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.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(BrowserSharedCookie.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.BrowserSharedCookie.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 SharedCookiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies{?%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 SharedCookiesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sharedCookies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -229,11 +232,11 @@ public SharedCookiesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/
/// 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(BrowserSharedCookie body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BrowserSharedCookie body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(BrowserSharedCookie body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BrowserSharedCookie body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(BrowserSharedCookie body, Act
///
/// Get a list of the browserSharedCookie objects and their properties.
///
- public class SharedCookiesRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SharedCookiesRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -329,3 +333,4 @@ public class SharedCookiesRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs
index 42171a211b..14d964055f 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Count/CountRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/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.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.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}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/$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}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/$count{?%24filter,%24search}", rawUrl)
@@ -83,11 +86,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internet
/// 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/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs
index f417d1216f..b4656a5f10 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/Item/BrowserSiteItemRequestBuilder.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.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Item
///
/// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
///
- public class BrowserSiteItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BrowserSiteItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete a browserSite from a browserSiteList.
@@ -158,8 +161,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(BrowserSite.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.BrowserSite.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -181,14 +184,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 BrowserSiteItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/{browserSite%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 BrowserSiteItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites/{browserSite%2Did}{?%24expand,%24select}", rawUrl)
@@ -220,11 +223,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);
@@ -240,11 +243,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(BrowserSite body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BrowserSite body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(BrowserSite body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.BrowserSite body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -256,7 +259,8 @@ public RequestInformation ToPatchRequestInformation(BrowserSite body, Action
/// Get a browserSite that resides on a browserSiteList.
///
- public class BrowserSiteItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class BrowserSiteItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -281,3 +285,4 @@ public class BrowserSiteItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs
index 8e0644706c..10f1f0d6c5 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Sites/SitesRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Count;
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.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.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites
///
/// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
///
- public class SitesRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SitesRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
@@ -30,7 +33,7 @@ public class SitesRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new BrowserSiteItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Item.BrowserSiteItemRequestBuilder(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.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.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(BrowserSite.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.BrowserSite.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 SitesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites{?%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 SitesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/{browserSiteList%2Did}/sites{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -229,11 +232,11 @@ public SitesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internet
/// 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(BrowserSite body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BrowserSite body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(BrowserSite body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BrowserSite body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -265,7 +268,8 @@ public RequestInformation ToPostRequestInformation(BrowserSite body, Action
/// Get a list of the browserSite objects and their properties.
///
- public class SitesRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SitesRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -329,3 +333,4 @@ public class SitesRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs
index b42e3a5d60..4131a3cd34 100644
--- a/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs
+++ b/src/generated/Admin/Edge/InternetExplorerMode/SiteLists/SiteListsRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Count;
using ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.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.Admin.Edge.InternetExplorerMode.SiteLists
///
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
///
- public class SiteListsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SiteListsRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
@@ -31,7 +34,7 @@ public Tuple, List> BuildCommand()
{
var executables = new List();
var commands = new List();
- var builder = new BrowserSiteListItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.BrowserSiteListItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -48,7 +51,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.Admin.Edge.InternetExplorerMode.SiteLists.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(BrowserSiteList.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.BrowserSiteList.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -112,41 +115,6 @@ public Command BuildListCommand()
{
var command = new Command("list");
command.Description = "Get a list of the browserSiteList objects and their properties.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/internetexplorermode-list-sitelists?view=graph-rest-1.0";
- 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");
@@ -154,14 +122,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);
@@ -171,14 +131,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},
@@ -201,14 +153,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 SiteListsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists{?%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 SiteListsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -221,11 +173,11 @@ public SiteListsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/inte
/// 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);
@@ -241,11 +193,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(BrowserSiteList body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BrowserSiteList body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(BrowserSiteList body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.BrowserSiteList body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -257,7 +209,8 @@ public RequestInformation ToPostRequestInformation(BrowserSiteList body, Action<
///
/// Get a list of the browserSiteList objects and their properties.
///
- public class SiteListsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class SiteListsRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -321,3 +274,4 @@ public class SiteListsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Microsoft365Apps/InstallationOptions/InstallationOptionsRequestBuilder.cs b/src/generated/Admin/Microsoft365Apps/InstallationOptions/InstallationOptionsRequestBuilder.cs
index 58b6bea18a..6cd8339d97 100644
--- a/src/generated/Admin/Microsoft365Apps/InstallationOptions/InstallationOptionsRequestBuilder.cs
+++ b/src/generated/Admin/Microsoft365Apps/InstallationOptions/InstallationOptionsRequestBuilder.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.Admin.Microsoft365Apps.InstallationOptions
///
/// Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity.
///
- public class InstallationOptionsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class InstallationOptionsRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property installationOptions for admin
@@ -29,18 +32,11 @@ public Command BuildDeleteCommand()
{
var command = new Command("delete");
command.Description = "Delete navigation property installationOptions for admin";
- var ifMatchOption = new Option("--if-match", description: "ETag") {
- Arity = ArgumentArity.ZeroOrMore
- };
- ifMatchOption.IsRequired = false;
- command.AddOption(ifMatchOption);
command.SetHandler(async (invocationContext) => {
- var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption);
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToDeleteRequestInformation(q => {
});
- if (ifMatch is not null) requestInfo.Headers.Add("If-Match", ifMatch);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -59,23 +55,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Read the properties and relationships of an m365AppsInstallationOptions object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/m365appsinstallationoptions-get?view=graph-rest-1.0";
- 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");
command.AddOption(queryOption);
command.SetHandler(async (invocationContext) => {
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
@@ -83,8 +67,6 @@ public Command BuildGetCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -123,8 +105,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(M365AppsInstallationOptions.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.M365AppsInstallationOptions.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -144,14 +126,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 InstallationOptionsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/microsoft365Apps/installationOptions{?%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 InstallationOptionsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/microsoft365Apps/installationOptions{?%24expand,%24select}", rawUrl)
@@ -183,11 +165,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);
@@ -203,11 +185,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(M365AppsInstallationOptions body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.M365AppsInstallationOptions body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(M365AppsInstallationOptions body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.M365AppsInstallationOptions body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -219,7 +201,8 @@ public RequestInformation ToPatchRequestInformation(M365AppsInstallationOptions
///
/// Read the properties and relationships of an m365AppsInstallationOptions object.
///
- public class InstallationOptionsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class InstallationOptionsRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -244,3 +227,4 @@ public class InstallationOptionsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/Microsoft365Apps/Microsoft365AppsRequestBuilder.cs b/src/generated/Admin/Microsoft365Apps/Microsoft365AppsRequestBuilder.cs
index 6e577ad1fb..6d1f320c13 100644
--- a/src/generated/Admin/Microsoft365Apps/Microsoft365AppsRequestBuilder.cs
+++ b/src/generated/Admin/Microsoft365Apps/Microsoft365AppsRequestBuilder.cs
@@ -1,7 +1,9 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.Microsoft365Apps.InstallationOptions;
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;
@@ -20,7 +22,8 @@ namespace ApiSdk.Admin.Microsoft365Apps
///
/// Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
///
- public class Microsoft365AppsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class Microsoft365AppsRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete navigation property microsoft365Apps for admin
@@ -30,18 +33,11 @@ public Command BuildDeleteCommand()
{
var command = new Command("delete");
command.Description = "Delete navigation property microsoft365Apps for admin";
- var ifMatchOption = new Option("--if-match", description: "ETag") {
- Arity = ArgumentArity.ZeroOrMore
- };
- ifMatchOption.IsRequired = false;
- command.AddOption(ifMatchOption);
command.SetHandler(async (invocationContext) => {
- var ifMatch = invocationContext.ParseResult.GetValueForOption(ifMatchOption);
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToDeleteRequestInformation(q => {
});
- if (ifMatch is not null) requestInfo.Headers.Add("If-Match", ifMatch);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -59,23 +55,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "A container for the Microsoft 365 apps admin functionality.";
- 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");
command.AddOption(queryOption);
command.SetHandler(async (invocationContext) => {
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
@@ -83,8 +67,6 @@ public Command BuildGetCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -105,7 +87,7 @@ public Command BuildInstallationOptionsNavCommand()
{
var command = new Command("installation-options");
command.Description = "Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity.";
- var builder = new InstallationOptionsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.Microsoft365Apps.InstallationOptions.InstallationOptionsRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildDeleteCommand());
execCommands.Add(builder.BuildGetCommand());
@@ -141,8 +123,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(AdminMicrosoft365Apps.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.AdminMicrosoft365Apps.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -162,14 +144,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 Microsoft365AppsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/microsoft365Apps{?%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 Microsoft365AppsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/microsoft365Apps{?%24expand,%24select}", rawUrl)
@@ -201,11 +183,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);
@@ -221,11 +203,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(AdminMicrosoft365Apps body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdminMicrosoft365Apps body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(AdminMicrosoft365Apps body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.AdminMicrosoft365Apps body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -237,7 +219,8 @@ public RequestInformation ToPatchRequestInformation(AdminMicrosoft365Apps body,
///
/// A container for the Microsoft 365 apps admin functionality.
///
- public class Microsoft365AppsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class Microsoft365AppsRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -262,3 +245,4 @@ public class Microsoft365AppsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.cs b/src/generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.cs
new file mode 100644
index 0000000000..f7689bc13a
--- /dev/null
+++ b/src/generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.cs
@@ -0,0 +1,230 @@
+//
+#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;
+using Microsoft.Kiota.Cli.Commons.IO;
+using Microsoft.Kiota.Cli.Commons;
+using System.Collections.Generic;
+using System.CommandLine;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Threading;
+using System;
+namespace ApiSdk.Admin.People.ItemInsights
+{
+ ///
+ /// Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ItemInsightsRequestBuilder : BaseCliRequestBuilder
+ {
+ ///
+ /// Delete navigation property itemInsights for admin
+ ///
+ /// A
+ public Command BuildDeleteCommand()
+ {
+ var command = new Command("delete");
+ command.Description = "Delete navigation property itemInsights for admin";
+ command.SetHandler(async (invocationContext) => {
+ var cancellationToken = invocationContext.GetCancellationToken();
+ var reqAdapter = invocationContext.GetRequestAdapter();
+ var requestInfo = ToDeleteRequestInformation(q => {
+ });
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken);
+ Console.WriteLine("Success");
+ });
+ return command;
+ }
+ ///
+ /// Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.
+ /// Find more info here
+ ///
+ /// A
+ public Command BuildGetCommand()
+ {
+ var command = new Command("get");
+ command.Description = "Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/peopleadminsettings-list-iteminsights?view=graph-rest-1.0";
+ var outputOption = new Option("--output", () => FormatterType.JSON);
+ command.AddOption(outputOption);
+ var queryOption = new Option("--query");
+ command.AddOption(queryOption);
+ command.SetHandler(async (invocationContext) => {
+ var output = invocationContext.ParseResult.GetValueForOption(outputOption);
+ var query = invocationContext.ParseResult.GetValueForOption(queryOption);
+ IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
+ 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 => {
+ });
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null;
+ response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
+ var formatter = outputFormatterFactory.GetFormatter(output);
+ await formatter.WriteOutputAsync(response, cancellationToken);
+ });
+ return command;
+ }
+ ///
+ /// Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.
+ /// Find more info here
+ ///
+ /// A
+ public Command BuildPatchCommand()
+ {
+ var command = new Command("patch");
+ command.Description = "Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/insightssettings-update?view=graph-rest-1.0";
+ var bodyOption = new Option("--body", description: "The request body") {
+ };
+ bodyOption.IsRequired = true;
+ command.AddOption(bodyOption);
+ var outputOption = new Option("--output", () => FormatterType.JSON);
+ command.AddOption(outputOption);
+ var queryOption = new Option("--query");
+ command.AddOption(queryOption);
+ command.SetHandler(async (invocationContext) => {
+ var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty;
+ var output = invocationContext.ParseResult.GetValueForOption(outputOption);
+ var query = invocationContext.ParseResult.GetValueForOption(queryOption);
+ IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
+ IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory");
+ var cancellationToken = invocationContext.GetCancellationToken();
+ var reqAdapter = invocationContext.GetRequestAdapter();
+ using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.InsightsSettings.CreateFromDiscriminatorValue);
+ if (model is null) {
+ Console.Error.WriteLine("No model data to send.");
+ return;
+ }
+ var requestInfo = ToPatchRequestInformation(model, q => {
+ });
+ requestInfo.SetContentFromParsable(reqAdapter, "application/json", model);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ var response = await reqAdapter.SendPrimitiveAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null;
+ response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
+ var formatter = outputFormatterFactory.GetFormatter(output);
+ await formatter.WriteOutputAsync(response, cancellationToken);
+ });
+ return command;
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// Path parameters for the request
+ public ItemInsightsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/people/itemInsights{?%24expand,%24select}", pathParameters)
+ {
+ }
+ ///
+ /// Instantiates a new and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ public ItemInsightsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/itemInsights{?%24expand,%24select}", rawUrl)
+ {
+ }
+ ///
+ /// Delete navigation property itemInsights for admin
+ ///
+ /// 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 ToDeleteRequestInformation(Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.
+ ///
+ /// 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)
+ {
+#nullable restore
+#else
+ public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
+ {
+#endif
+ var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Update privacy settings to display or return the specified type of insights in an organization. Currently, itemInsights is the only supported type of settings. To learn more about customizing insights privacy for your organization, see Customize item insights privacy in Microsoft Graph.
+ ///
+ /// A
+ /// The request body
+ /// 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 ToPatchRequestInformation(global::ApiSdk.Models.InsightsSettings body, Action>? requestConfiguration = default)
+ {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.InsightsSettings body, Action> requestConfiguration = default)
+ {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
+ requestInfo.Configure(requestConfiguration);
+ requestInfo.Headers.TryAdd("Accept", "application/json");
+ return requestInfo;
+ }
+ ///
+ /// Get the properties of an insightsSettings object to display or return item insights in an organization. To learn how to customize the privacy of item insights in an organization, see Customize item insights privacy in Microsoft Graph.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ItemInsightsRequestBuilderGetQueryParameters
+ {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ }
+}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/People/PeopleRequestBuilder.cs b/src/generated/Admin/People/PeopleRequestBuilder.cs
index 69090a3694..be6c37f977 100644
--- a/src/generated/Admin/People/PeopleRequestBuilder.cs
+++ b/src/generated/Admin/People/PeopleRequestBuilder.cs
@@ -1,8 +1,11 @@
//
+#pragma warning disable CS0618
+using ApiSdk.Admin.People.ItemInsights;
using ApiSdk.Admin.People.ProfileCardProperties;
using ApiSdk.Admin.People.Pronouns;
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 +24,8 @@ namespace ApiSdk.Admin.People
///
/// Provides operations to manage the people property of the microsoft.graph.admin entity.
///
- public class PeopleRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PeopleRequestBuilder : BaseCliRequestBuilder
{
///
/// Retrieve the properties and relationships of a peopleAdminSettings object.
@@ -32,23 +36,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Retrieve the properties and relationships of a peopleAdminSettings object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/peopleadminsettings-get?view=graph-rest-1.0";
- 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");
command.AddOption(queryOption);
command.SetHandler(async (invocationContext) => {
- var select = invocationContext.ParseResult.GetValueForOption(selectOption);
- var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
@@ -56,8 +48,6 @@ public Command BuildGetCommand()
var cancellationToken = invocationContext.GetCancellationToken();
var reqAdapter = invocationContext.GetRequestAdapter();
var requestInfo = ToGetRequestInformation(q => {
- q.QueryParameters.Select = select;
- q.QueryParameters.Expand = expand;
});
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -71,6 +61,25 @@ public Command BuildGetCommand()
return command;
}
///
+ /// Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity.
+ ///
+ /// A
+ public Command BuildItemInsightsNavCommand()
+ {
+ var command = new Command("item-insights");
+ command.Description = "Provides operations to manage the itemInsights property of the microsoft.graph.peopleAdminSettings entity.";
+ var builder = new global::ApiSdk.Admin.People.ItemInsights.ItemInsightsRequestBuilder(PathParameters);
+ var execCommands = new List();
+ execCommands.Add(builder.BuildDeleteCommand());
+ execCommands.Add(builder.BuildGetCommand());
+ execCommands.Add(builder.BuildPatchCommand());
+ foreach (var cmd in execCommands)
+ {
+ command.AddCommand(cmd);
+ }
+ return command;
+ }
+ ///
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
///
/// A
@@ -78,7 +87,7 @@ public Command BuildProfileCardPropertiesNavCommand()
{
var command = new Command("profile-card-properties");
command.Description = "Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.";
- var builder = new ProfileCardPropertiesRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.People.ProfileCardProperties.ProfileCardPropertiesRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
nonExecCommands.Add(builder.BuildCountNavCommand());
@@ -105,7 +114,7 @@ public Command BuildPronounsNavCommand()
{
var command = new Command("pronouns");
command.Description = "Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.";
- var builder = new PronounsRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.People.Pronouns.PronounsRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
execCommands.Add(builder.BuildPatchCommand());
@@ -116,14 +125,14 @@ public Command BuildPronounsNavCommand()
return command;
}
///