diff --git a/src/generated/Admin/AdminRequestBuilder.cs b/src/generated/Admin/AdminRequestBuilder.cs
index 03588d39a0..745a7bd47b 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());
@@ -105,7 +109,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 +151,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 +179,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 +197,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 +223,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 +250,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 +268,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 +288,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 +308,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 +324,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 +350,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..1bb7df7c02 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
@@ -105,7 +108,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 +150,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 +171,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 +210,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 +230,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 +246,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 +272,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..b640a98c3f 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
@@ -122,8 +125,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 +153,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 +173,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 +212,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 +232,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 +248,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 +274,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..2d4bba9905 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
@@ -57,14 +60,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 +80,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 +95,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 +121,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..015f7d4b26 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;
@@ -201,14 +204,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 +224,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 +244,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 +260,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 +325,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..bc9321c406 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
@@ -123,8 +126,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 +147,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 +186,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 +206,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 +222,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 +248,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..0f08b39bce 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
@@ -105,7 +108,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 +144,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 +165,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 +204,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 +224,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 +240,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 +266,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..3467a55429
--- /dev/null
+++ b/src/generated/Admin/People/ItemInsights/ItemInsightsRequestBuilder.cs
@@ -0,0 +1,251 @@
+//
+#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";
+ 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},
+ };
+ 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 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");
+ 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 => {
+ q.QueryParameters.Select = select;
+ q.QueryParameters.Expand = expand;
+ });
+ 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..7fa307d2ad 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.
@@ -71,6 +75,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 +101,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 +128,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 +139,14 @@ public Command BuildPronounsNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public PeopleRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/people{?%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 PeopleRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people{?%24expand,%24select}", rawUrl)
@@ -136,11 +159,11 @@ public PeopleRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people{?%24e
/// 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);
@@ -151,7 +174,8 @@ public RequestInformation ToGetRequestInformation(Action
/// Retrieve the properties and relationships of a peopleAdminSettings object.
///
- public class PeopleRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PeopleRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -176,3 +200,4 @@ public class PeopleRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs b/src/generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs
index 6903c1d653..ad1545e111 100644
--- a/src/generated/Admin/People/ProfileCardProperties/Count/CountRequestBuilder.cs
+++ b/src/generated/Admin/People/ProfileCardProperties/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.People.ProfileCardProperties.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
@@ -57,14 +60,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/people/profileCardProperties/$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/people/profileCardProperties/$count{?%24filter,%24search}", rawUrl)
@@ -77,11 +80,11 @@ public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/profil
/// 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 +95,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 +121,4 @@ public class CountRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs b/src/generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs
index 5ea19a3552..50d6d9cfc4 100644
--- a/src/generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.cs
+++ b/src/generated/Admin/People/ProfileCardProperties/Item/ProfileCardPropertyItemRequestBuilder.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.People.ProfileCardProperties.Item
///
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
///
- public class ProfileCardPropertyItemRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ProfileCardPropertyItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property.
@@ -141,8 +144,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(ProfileCardProperty.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.ProfileCardProperty.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -163,14 +166,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 ProfileCardPropertyItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/people/profileCardProperties/{profileCardProperty%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 ProfileCardPropertyItemRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/profileCardProperties/{profileCardProperty%2Did}{?%24expand,%24select}", rawUrl)
@@ -202,11 +205,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);
@@ -222,11 +225,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(ProfileCardProperty body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProfileCardProperty body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(ProfileCardProperty body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.ProfileCardProperty body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -238,7 +241,8 @@ public RequestInformation ToPatchRequestInformation(ProfileCardProperty body, Ac
///
/// Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property.
///
- public class ProfileCardPropertyItemRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ProfileCardPropertyItemRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -263,3 +267,4 @@ public class ProfileCardPropertyItemRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs b/src/generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs
index 9a642d928e..b1c75872e2 100644
--- a/src/generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs
+++ b/src/generated/Admin/People/ProfileCardProperties/ProfileCardPropertiesRequestBuilder.cs
@@ -1,8 +1,10 @@
//
+#pragma warning disable CS0618
using ApiSdk.Admin.People.ProfileCardProperties.Count;
using ApiSdk.Admin.People.ProfileCardProperties.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.People.ProfileCardProperties
///
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
///
- public class ProfileCardPropertiesRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ProfileCardPropertiesRequestBuilder : BaseCliRequestBuilder
{
///
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
@@ -30,7 +33,7 @@ public class ProfileCardPropertiesRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new ProfileCardPropertyItemRequestBuilder(PathParameters);
+ var builder = new global::ApiSdk.Admin.People.ProfileCardProperties.Item.ProfileCardPropertyItemRequestBuilder(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.People.ProfileCardProperties.Count.CountRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -79,8 +82,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(ProfileCardProperty.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.ProfileCardProperty.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -197,14 +200,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 ProfileCardPropertiesRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/people/profileCardProperties{?%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 ProfileCardPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/profileCardProperties{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
@@ -217,11 +220,11 @@ public ProfileCardPropertiesRequestBuilder(string rawUrl) : base("{+baseurl}/adm
/// 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);
@@ -237,11 +240,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToPostRequestInformation(ProfileCardProperty body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ProfileCardProperty body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(ProfileCardProperty body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(global::ApiSdk.Models.ProfileCardProperty body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -253,7 +256,8 @@ public RequestInformation ToPostRequestInformation(ProfileCardProperty body, Act
///
/// Get a collection of profileCardProperty resources for an organization. Each resource is identified by its directoryPropertyName property.
///
- public class ProfileCardPropertiesRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ProfileCardPropertiesRequestBuilderGetQueryParameters
{
/// Include count of items
[QueryParameter("%24count")]
@@ -317,3 +321,4 @@ public class ProfileCardPropertiesRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs b/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs
index 06a22e9db5..319c39bbc7 100644
--- a/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs
+++ b/src/generated/Admin/People/Pronouns/PronounsRequestBuilder.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.People.Pronouns
///
/// Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
///
- public class PronounsRequestBuilder : BaseCliRequestBuilder
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PronounsRequestBuilder : BaseCliRequestBuilder
{
///
/// Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
@@ -94,8 +97,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(PronounsSettings.CreateFromDiscriminatorValue);
+ var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
+ var model = parseNode.GetObjectValue(global::ApiSdk.Models.PronounsSettings.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -115,14 +118,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 PronounsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/admin/people/pronouns{?%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 PronounsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/pronouns{?%24expand,%24select}", rawUrl)
@@ -135,11 +138,11 @@ public PronounsRequestBuilder(string rawUrl) : base("{+baseurl}/admin/people/pro
/// 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);
@@ -155,11 +158,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(PronounsSettings body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PronounsSettings body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(PronounsSettings body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.PronounsSettings body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -171,7 +174,8 @@ public RequestInformation ToPatchRequestInformation(PronounsSettings body, Actio
///
/// Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
///
- public class PronounsRequestBuilderGetQueryParameters
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class PronounsRequestBuilderGetQueryParameters
{
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -196,3 +200,4 @@ public class PronounsRequestBuilderGetQueryParameters
}
}
}
+#pragma warning restore CS0618
diff --git a/src/generated/Admin/ReportSettings/ReportSettingsRequestBuilder.cs b/src/generated/Admin/ReportSettings/ReportSettingsRequestBuilder.cs
new file mode 100644
index 0000000000..c5819f0af2
--- /dev/null
+++ b/src/generated/Admin/ReportSettings/ReportSettingsRequestBuilder.cs
@@ -0,0 +1,251 @@
+//
+#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.ReportSettings
+{
+ ///
+ /// Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
+ ///
+ [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
+ public partial class ReportSettingsRequestBuilder : BaseCliRequestBuilder
+ {
+ ///
+ /// Delete navigation property reportSettings for admin
+ ///
+ /// A
+ public Command BuildDeleteCommand()
+ {
+ var command = new Command("delete");
+ command.Description = "Delete navigation property reportSettings 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},
+ };
+ await reqAdapter.SendNoContentAsync(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken);
+ Console.WriteLine("Success");
+ });
+ return command;
+ }
+ ///
+ /// Get the tenant-level settings for Microsoft 365 reports.
+ /// Find more info here
+ ///
+ /// A
+ public Command BuildGetCommand()
+ {
+ var command = new Command("get");
+ command.Description = "Get the tenant-level settings for Microsoft 365 reports.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/adminreportsettings-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");
+ 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 => {
+ q.QueryParameters.Select = select;
+ q.QueryParameters.Expand = expand;
+ });
+ 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;
+ }
+ ///